Skip to content

fix: MainThread check checks for Job execution #2226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bitsandfoxes
Copy link
Contributor

Fixes #2216

The fix is straight forward: Based on the Unity docs JobsUtility.IsExecutingJob allows us to check whether this is getting called from within a job.

Keeping this as draft as I've been unable to reproduce this locally and adding something to the smoke tests would be really nice.

Copy link
Contributor

github-actions bot commented Jul 2, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- MainThread check checks for Job execution ([#2226](https://github.com/getsentry/sentry-unity/pull/2226))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 9234925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsMainThread check fails in burst context
1 participant